require 'ftools'
require 'Read_Properties'
	propertyhash = load_properties(".//test.properties")
	OriginalSahiFileDir=propertyhash["OriginalSahiFileDir"]
	NewSahiFileDir=propertyhash["NewSahiFileDir"]
	DataFileDir=propertyhash["DataFileDir"]
	toformatFile=propertyhash["toformatFile"]
	File.open(toformatFile, 'w') {|f| f.write("") }
 	stringarr=Array.new 
	Dir.foreach(OriginalSahiFileDir){|filename|
   	if (filename=~/sah/) 
 		File.open(OriginalSahiFileDir+filename,"r") do |myfile|
   		 	myfile.each_line {|parseline|
			parseline=parseline.gsub(/(["])[\w\W][^),;]*\1/,'"PARAM - NOPARAM - PARAMPREV"')
			puts "$$$$$$$$$$$$" + parseline
			if(parseline=~/\/\//)
			else
			if (stringarr.empty?)			
				stringarr.push(parseline)
			else
				if(stringarr.include?(parseline))	
				else
					stringarr.push(parseline)
				end		
			end	 	
  			end
			}		 		
 		end
	end
 }
 puts stringarr
 File.open(toformatFile, 'w') {|f| f.write(stringarr) }